package packageModel;

import java.io.Serializable;
import java.util.GregorianCalendar;

/**
 *
 * @author Lionel & Julien
 */
public class Commande implements Serializable {
    
    /*
     * COMMANDE : 
     */
    
    /*
     * VARIABLE 
     */
    
    private int numCde;
    private String pseudo;
    private GregorianCalendar dateCommande;
    private GregorianCalendar dateCloture;
    private Boolean isCloturee;
    
    /*
     * CONSTRUCTEUR
     */

    /**
     * 
     * @param numCde
     * @param pseudo
     * @param dateCommande
     * @param isCloturee
     */
    public Commande(int numCde, String pseudo, GregorianCalendar dateCommande, Boolean isCloturee) {
        this.numCde = numCde;
        this.pseudo = pseudo;
        this.dateCommande = dateCommande;
        this.isCloturee = isCloturee;
    }

    
    
    /**
     * 
     * @param numCde
     * @param pseudo
     * @param dateCommande
     * @param dateCloture
     * @param isCloturee
     */
    public Commande(int numCde, String pseudo, GregorianCalendar dateCommande, GregorianCalendar dateCloture, Boolean isCloturee) {
        this.numCde = numCde;
        this.pseudo = pseudo;
        this.dateCommande = dateCommande;
        this.dateCloture = dateCloture;
        this.isCloturee = isCloturee;
    }
    
    /*
     * GET
     */

    /**
     * 
     * @return numCde
     */
    public int getNumCde() { return numCde; }
    /**
     * 
     * @return pseudo
     */ 
    public String getPseudo() { return pseudo; }
    /**
     * 
     * @return dateCommande
     */
    public GregorianCalendar getDateCommande() { return dateCommande; }
    /**
     * 
     * @return dateCloture
     */
    public GregorianCalendar getDateCloture() { return dateCloture; }
    /**
     * 
     * @return isCloturee
     */
    public Boolean getIsCloturee() { return isCloturee; }
    
    /*
     * SET
     */
    
    /**
     * 
     * @param numCde
     */
    public void setNumCde(int numCde) { this.numCde = numCde; }
    /**
     * 
     * @param pseudo
     */
    public void setPseudo(String pseudo) { this.pseudo = pseudo; }
    /**
     * 
     * @param dateCommande
     */
    public void setDateCommande(GregorianCalendar dateCommande) { this.dateCommande = dateCommande; }
    /**
     * 
     * @param dateCloture
     */
    public void setDateCloture(GregorianCalendar dateCloture) { this.dateCloture = dateCloture; }
    /**
     * 
     * @param isCloturee
     */
    public void setIsCloturee(Boolean isCloturee) { this.isCloturee = isCloturee; }
    
    
}
